package com.nexmo.hangman.service.utils;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

public class Utils {
    public static List<Integer> stringFindAll(String str, Character aChar) {

        List<Integer> indexes = new ArrayList<Integer>();
        for (int index = str.indexOf(aChar); index >= 0; index = str.indexOf(aChar, index + 1)) {
            indexes.add(index);
        }
        return indexes;
    }
}
